package com.cxs.mapper;

import com.cxs.pojo.Cashier;
import com.cxs.pojo.CashierExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CashierMapper {
    long countByExample(CashierExample example);

    int deleteByExample(CashierExample example);

    int deleteByPrimaryKey(Integer cashierId);

    int insert(Cashier record);

    int insertSelective(Cashier record);

    List<Cashier> selectByExample(CashierExample example);

    Cashier selectByPrimaryKey(Integer cashierId);

    int updateByExampleSelective(@Param("record") Cashier record, @Param("example") CashierExample example);

    int updateByExample(@Param("record") Cashier record, @Param("example") CashierExample example);

    int updateByPrimaryKeySelective(Cashier record);

    int updateByPrimaryKey(Cashier record);

    /**
     * type
     * @param reportId
     * @param type 0 药品出纳 1 项目出纳
     * @return
     */
    List<Cashier> selAllByReportId(@Param("reportId") Integer reportId,@Param("type") Integer type);
}